<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
 <head>
  <meta http-equiv="content-type" content="text/html; charset=UTF-8">
  <title>Set an option for the cURL multi handle</title>

 </head>
 <body><div class="manualnavbar" style="text-align: center;">
 <div class="prev" style="text-align: left; float: left;"><a href="function.curl-multi-select.html">curl_multi_select</a></div>
 <div class="next" style="text-align: right; float: right;"><a href="function.curl-multi-strerror.html">curl_multi_strerror</a></div>
 <div class="up"><a href="ref.curl.html">cURL 函数</a></div>
 <div class="home"><a href="index.html">PHP Manual</a></div>
</div><hr /><div id="function.curl-multi-setopt" class="refentry">
 <div class="refnamediv">
  <h1 class="refname">curl_multi_setopt</h1>
  <p class="verinfo">(PHP 5 &gt;= 5.5.0)</p><p class="refpurpose"><span class="refname">curl_multi_setopt</span> &mdash; <span class="dc-title">Set an option for the cURL multi handle</span></p>

 </div>

 <div class="refsect1 description" id="refsect1-function.curl-multi-setopt-description">
  <h3 class="title">说明</h3>
  <div class="methodsynopsis dc-description">
   <span class="type">bool</span> <span class="methodname"><strong>curl_multi_setopt</strong></span>
    ( <span class="methodparam"><span class="type">resource</span> <code class="parameter">$mh</code></span>
   , <span class="methodparam"><span class="type">int</span> <code class="parameter">$option</code></span>
   , <span class="methodparam"><span class="type"><a href="language.pseudo-types.html#language.types.mixed" class="type mixed">mixed</a></span> <code class="parameter">$value</code></span>
   )</div>

  <p class="para rdfs-comment">

  </p>

  <div class="warning"><strong class="warning">Warning</strong><p class="simpara">本函数还未编写文档，仅有参数列表。</p></div>

 </div>


 <div class="refsect1 parameters" id="refsect1-function.curl-multi-setopt-parameters">
  <h3 class="title">参数</h3>
  <dl>

   
    <dt>
<em><code class="parameter">mh</code></em></dt>

    <dd>

     <p class="para">
      
     </p>
    </dd>

   
   
    <dt>
<em><code class="parameter">option</code></em></dt>

    <dd>

     <p class="para">
      One of the <strong><code>CURLMOPT_*</code></strong> constants.
     </p>
    </dd>

   
   
    <dt>
<em><code class="parameter">value</code></em></dt>

    <dd>

      <p class="para">
       The value to be set on <em><code class="parameter">option</code></em>.
      </p>
      <p class="para">
       <em><code class="parameter">value</code></em> should be an <span class="type"><a href="language.types.integer.html" class="type int">int</a></span> for the
       following values of the <em><code class="parameter">option</code></em> parameter:
       <table class="doctable informaltable">
        
         <thead>
          <tr>
           <th>Option</th>
           <th>Set <em><code class="parameter">value</code></em> to</th>
          </tr>

         </thead>

         <tbody class="tbody">
          <tr>
           <td style="vertical-align: top;"><strong><code>CURLMOPT_PIPELINING</code></strong></td>
           <td style="vertical-align: top;">
            Pass 1 to enable or 0 to disable. Enabling pipelining on a multi
            handle will make it attempt to perform HTTP Pipelining as far as
            possible for transfers using this handle. This means that if you add
            a second request that can use an already existing connection, the
            second request will be &quot;piped&quot; on the same connection rather than
            being executed in parallel.
           </td>
          </tr>

          <tr>
           <td style="vertical-align: top;"><strong><code>CURLMOPT_MAXCONNECTS</code></strong></td>
           <td style="vertical-align: top;">
            Pass a number that will be used as the maximum amount of
            simultaneously open connections that libcurl may cache. Default is
            10. When the cache is full, curl closes the oldest one in the cache
            to prevent the number of open connections from increasing.
           </td>
          </tr>

         </tbody>
        
       </table>

      </p>
    </dd>

   
  </dl>

 </div>


 <div class="refsect1 returnvalues" id="refsect1-function.curl-multi-setopt-returnvalues">
  <h3 class="title">返回值</h3>
  <p class="para">
   成功时返回 <strong><code>TRUE</code></strong>， 或者在失败时返回 <strong><code>FALSE</code></strong>。
  </p>
 </div>



</div><hr /><div class="manualnavbar" style="text-align: center;">
 <div class="prev" style="text-align: left; float: left;"><a href="function.curl-multi-select.html">curl_multi_select</a></div>
 <div class="next" style="text-align: right; float: right;"><a href="function.curl-multi-strerror.html">curl_multi_strerror</a></div>
 <div class="up"><a href="ref.curl.html">cURL 函数</a></div>
 <div class="home"><a href="index.html">PHP Manual</a></div>
</div></body></html>
